# -*- coding:utf-8 -*-
from interface import *
from config.config import config, ValueTypeEnum


@app.route("/")
def index():
    return "Hello World"


if __name__ == "__main__":
    setup()
    host = config.get("serviceConfig", "host")
    port = config.get("serviceConfig", "port", value_type=ValueTypeEnum.INT)
    debug = config.get("serviceConfig", "debug", value_type=ValueTypeEnum.BOOL)
    app.run(host=host, port=port, debug=debug)